#pragma once
#include <vulkan/vulkan.h>
#include <vector>
class VKCommandBuffer
{
public:
	VKCommandBuffer();
	~VKCommandBuffer();

	void CreateCommandPoolAndBuffers(size_t imageCount);
	void BeginCommandBuffer(VkCommandBuffer commandBuffer);
	void EndCommandBuffer(VkCommandBuffer commandBuffer);

	void DestroyCommandPoolAndBuffers();

	VkCommandPool m_CommandPool;
	std::vector<VkCommandBuffer> m_CommandBuffers;
private:
	void CreateCommandPool();
	void AllocateCommandBuffers(size_t imageCount);
};

